﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BAASearchLib
{
    public class PptToTextPresentationApp
    {
        private static Microsoft.Office.Interop.PowerPoint.Application ppApp = null;

        public static Microsoft.Office.Interop.PowerPoint.Application PpApp
        {
            get
            {
                if (ppApp == null)
                    ppApp = new Microsoft.Office.Interop.PowerPoint.ApplicationClass();
                return ppApp;
            }
        }

        public static void Close()
        {
            (PpApp as Microsoft.Office.Interop.PowerPoint._Application).Quit();
            ppApp = null;
        }
    }
}
